package xuexi;
class zhuanzhiArray{
    public static void chaozuo(int[] data){
        int len=data.length/2;
        int xbmax=data.length-1;
        int xbmin=0;
        for (int i=0;i<=len;i++){
            int temp=data[xbmax];
            data[xbmax]=data[xbmin];
            data[xbmin]=temp;
            xbmax--;
            xbmin++;
        }
    }
    public static  void showArray(int[] temp){
        for (int x=0;x<=temp.length-1;x++){
            System.out.println(temp[x]);
        }
    }
}
public class zhuanzhi {
    public  static void main(String[] args){
        int[] data=new int[]{1,2,3,4,5,6};
        zhuanzhiArray.chaozuo(data);
        zhuanzhiArray.showArray(data);
    }
}
